import { connect } from "react-redux";

function World({ count }: any) {
  return (
    <div>
      <h4>World</h4>
      <p>{count}</p>
    </div>
  );
}

export default connect((state: any) => ({
  count: state.count,
}))(World);
